package AP;

import java.io.IOException;

/**
 * A simple interface for building persistent objects on
 * platforms where serialization is not available.
 */
public interface Persistent {

    /* Called to persist an object */
    byte[] persist() throws IOException;
        
    /* Called to resurrect a persistent object */
    void resurrect( byte[] data ) throws IOException;
}
